<!DOCTYPE html>
<html lang="zh">

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimal-ui">
	<meta name="author" content="小枫">
	<title>娱乐配置 | <%= data.title %></title>
	<link rel="shortcut icon" type="image/x-icon" href="<%= data.icon %>">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="apple-touch-fullscreen" content="yes">
	<meta name="apple-mobile-web-app-status-bar-style" content="default">
	<link rel="stylesheet" type="text/css" href="/admin/css/materialdesignicons.min.css">
	<link rel="stylesheet" type="text/css" href="/admin/css/bootstrap.min.css">
	<link rel="stylesheet" type="text/css" href="/admin/css/animate.min.css">
	<!--对话框插件css-->
	<link rel="stylesheet" type="text/css" href="/admin/js/jquery-confirm/jquery-confirm.min.css">
	<link rel="stylesheet" type="text/css" href="/admin/css/style.min.css">
	<link rel="stylesheet" type="text/css" href="/admin/css/upload.css">
</head>

<body>
	<div class="container-fluid">

		<div class="row">
			<div class="col-lg-12">
				<div class="card">
					<header class="card-header">
						<div class="card-title">今日运势【首页右侧正面】</div>
					</header>
					<div class="card-body">
						<div class="row">
							<form class="config-form col-lg-6" onsubmit="setModules(event, ['ain_fortune_title'])">
								<div class="mb-3">
									<label for="web_site_ain_fortune_title" class="form-label">标题</label>
									<div class="input-group">
										<input class="form-control" type="text" id="web_site_ain_fortune_title" name="ain_fortune_title" placeholder="请输入标题">
										<button type="submit" class="btn btn-info me-1">保 存</button>
									</div>
								</div>
							</form>
							<form class="config-form col-lg-3" onsubmit="setModules(event, ['ain_fortune_title'])">
								<div class="mb-3">
									<label for="web_site_ain_fortune_stars" class="form-label">Emoji符号</label>
									<div class="input-group">
										<input class="form-control" type="text" id="web_site_ain_fortune_stars" name="ain_fortune_stars" placeholder="请输入Emoji符号">
										<button type="submit" class="btn btn-info me-1">保 存</button>
									</div>
									<small>Emoji符号地址: <a href="https://www.runoob.com/charsets/ref-emoji.html" target="_blank" rel="noopener noreferrer">点击进入</a></small>
								</div>
							</form>
							<form class="config-form col-lg-3" onsubmit="setModules(event, ['ain_fortune_title'])">
								<div class="mb-3">
									<label for="web_site_ain_fortune_stars_num" class="form-label">Emoji符号数量</label>
									<div class="input-group">
										<input class="form-control" type="number" id="web_site_ain_fortune_stars_num" name="ain_fortune_stars_num" placeholder="请输入Emoji符号数量" min="1" max="5">
										<button type="submit" class="btn btn-info me-1">保 存</button>
									</div>
								</div>
							</form>
						</div>
						<div class="card-btns mb-2-5 mt-1">
							<a class="btn btn-primary me-1" href="JavaScript:;" onclick="addFortune()"><i class="mdi mdi-plus"></i> 新增</a>
						</div>
						<div class="table-responsive">
							<table class="table table-bordered">
								<thead>
									<tr class="text-center">
										<th>编号</th>
										<th>文字</th>
										<th>百分比</th>
										<th>操作</th>
									</tr>
								</thead>
								<tbody id="fortuneTable"></tbody>
							</table>
						</div>
					</div>
				</div>
			</div>

			<div class="col-lg-6">
				<div class="card">
					<header class="card-header">
						<div class="card-title">首页娱乐左侧【反面】</div>
					</header>
					<div class="card-body">
						<form class="config-form" onsubmit="setModules(event, ['ain_rest_title'])">
							<div class="mb-3">
								<label for="web_site_ain_rest_title" class="form-label">标题</label>
								<div class="input-group">
									<input class="form-control" type="text" id="web_site_ain_rest_title" name="ain_rest_title" placeholder="请输入标题">
									<button type="submit" class="btn btn-info me-1">保 存</button>
								</div>
							</div>
						</form>
						<div class="card-btns mb-2-5 mt-4">
							<a class="btn btn-primary me-1" href="JavaScript:;" onclick="addRest()"><i class="mdi mdi-plus"></i> 新增</a>
						</div>
						<div class="table-responsive">
							<table class="table table-bordered">
								<thead>
									<tr class="text-center">
										<th>编号</th>
										<th>文字</th>
										<th>图标</th>
										<th>操作</th>
									</tr>
								</thead>
								<tbody id="restTable"></tbody>
							</table>
						</div>
					</div>
				</div>
			</div>

			<div class="col-lg-6">
				<div class="card">
					<header class="card-header">
						<div class="card-title">首页娱乐右侧【反面】</div>
					</header>
					<div class="card-body">
						<form class="config-form" onsubmit="setModules(event, ['ain_information_title'])">
							<div class="mb-3">
								<label for="web_site_ain_information_title" class="form-label">标题</label>
								<div class="input-group">
									<input class="form-control" type="text" id="web_site_ain_information_title" name="ain_information_title" placeholder="请输入标题">
									<button type="submit" class="btn btn-info me-1">保 存</button>
								</div>
							</div>
						</form>
						<form class="config-form" onsubmit="setModules(event, ['ain_information_img'])">
							<div class="mb-3">
								<label for="web_site_ain_information_img" class="form-label">图标</label>
								<div class="input-group">
									<input class="form-control" type="text" id="web_site_ain_information_img" name="ain_information_img" placeholder="请输入图标">
									<button class="btn btn-default uploadBtn" type="button"><span>上传图片</span><input type="file" accept="image/*" class="fileInput" onchange="handleFileSelect(event)"></button>
									<button type="submit" class="btn btn-info me-1">保 存</button>
								</div>
							</div>
						</form>
						<form class="config-form" onsubmit="setModules(event, ['ain_information_introduced'])">
							<div class="mb-3">
								<label for="web_site_ain_information_introduced" class="form-label">个人介绍</label>
								<div class="input-group">
									<textarea class="form-control" rows="4" id="web_site_ain_information_introduced" name="ain_information_introduced" placeholder="请输入您的介绍"></textarea>
								</div>
								<button type="submit" class="btn btn-info me-1 mt-3">保 存</button>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>

	</div>
	<script type="text/javascript" src="/admin/js/jquery.min.js"></script>
	<script type="text/javascript" src="/admin/js/popper.min.js"></script>
	<script type="text/javascript" src="/admin/js/bootstrap.min.js"></script>
	<!-- 引入dayjs -->
	<script type="text/javascript" src="/admin/js/dayjs/dayjs.min.js"></script>
	<script type="text/javascript" src="/admin/js/dayjs/utc.js"></script>
	<script type="text/javascript" src="/admin/js/dayjs/timezone.js"></script>
	<!-- 弹窗插件 -->
	<script type="text/javascript" src="/admin/js/sweetalert.min.js"></script>
	<!-- 懒加载插件 -->
	<script type="text/javascript" src="/admin/js/lazyload.min.js"></script>
	<!--引入notify插件js-->
	<script type="text/javascript" src="/admin/js/bootstrap-notify.min.js"></script>
	<!--对话框插件js-->
	<script type="text/javascript" src="/admin/js/jquery-confirm/jquery-confirm.min.js"></script>

	<script type="text/javascript" src="/admin/js/upload.js"></script>
	<script type="text/javascript" src="/admin/js/main.min.js"></script>
	<script type="text/javascript" src="/admin/js/nitai5pro/recreation.js"></script>
</body>

</html>